/*
 * Copyright 2010 by Adam Mayer	 <adam@makerbot.com>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
 */

#ifndef ERRORS_HH_
#define ERRORS_HH_

#include "Configuration.hh"

/// Definition of blink codes for error conditions.

// TODO: Add these to the main documentation page.

#define NO_ERROR                        0
#define ERR_SLAVE_PACKET_TIMEOUT        1
#define ERR_SLAVE_LOCK_TIMEOUT          2
#define ERR_SLAVE_PACKET_MISC           3
#define ERR_HOST_PACKET_TIMEOUT         4
#define ERR_HOST_PACKET_MISC            5
#define ERR_WDT_TIMEOUT                 6
#define ERR_ESTOP 	                7
#define ERR_HOST_TRUNCATED_CMD          8
#ifdef SMALL_4K_RAM
	#define ERR_NO_FREE_SRAM	9
#endif
#define ERR_CANCEL_BUILD		10
#define ERR_RESET_DURING_BUILD		11
#define ERR_SD_READ                     12
#define ERR_SD_CRC                      13
#define ERR_SD_NOCARD                   14

#endif /* ERRORS_HH_ */
